<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<meta charset="utf-8">
<head th:include="includes/add-include :: add-header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal" id="myForm" th:object="${info}">
            <input type="hidden" id="dictId" name="dictId" th:field="*{dictId}" />
            <div class="form-group">
                <label class="col-sm-3 control-label">字典类型：</label>
                <div class="col-sm-5">
                    <input id="dictType" name="dictType" class="form-control" type="text" th:field="*{dictType}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">字典类型名称：</label>
                <div class="col-sm-5">
                    <input id="dictName" name="dictName" class="form-control" type="text" th:field="*{dictName}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">状态</label>
                <div class="col-sm-5">
                    <div class="radio-box" th:each="dict : ${@dict.getData('normal_status')}">
                        <input type="radio" th:id="${dict.dataId}" name="status" th:value="${dict.dictCode}" th:field="*{status}">
                        <label th:for="${dict.dictCode}" th:text="${dict.dictValue}"></label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">备注</label>
                <div class="col-sm-5">
                    <textarea class="form-control" id="remark" name="remark"
                                      rows="3">[[*{remark}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label"></label>
                <div class="col-sm-3">
                    <a class="btn btn-info btn-rounded btn-lg-rd" onclick="edit()"><i class="fa fa-bell-o"></i>&nbsp;保存</a>
                </div>
            </div>
    </form>
    </div>
    <div th:include="includes/add-include :: add-footer"></div>
    <script th:src="@{/script/system/dictType/edit.js}"></script>
    <script type="text/javascript">
	    var prefix = ctx + "system/dictType";
    </script>
</body>
</html>
